var https = require('https'),
  fs = require('fs');

var options = {
  key:fs.readFileSync('keys/server.key'),
  cert:fs.readFileSync('keys/server.crt')
};

https.createServer(options, function(req, res) {
  res.writeHead(200);
  res.end('hello world');
}).listen(8000);